class CreateEndarEvents < ActiveRecord::Migration
  def self.up
    create_table :endar_events do |t|

      t.column :name, :string, :limit => 32, :null => false
	  t.column :description, :text, :limit => 256
	  t.column :duration, :integer, :null => false
	  t.column :admin, :string, :limit => 32, :null => false
	  t.column :date_begin, :datetime
	  t.column :date_end, :datetime
	  t.column :time_begin, :datetime
	  t.column :time_end, :datetime
	  t.column :created_at, :timestamp
	  t.column :updated_at, :timestamp
    end
  end

  def self.down
    drop_table :endar_events
  end
end
